﻿
@{
    Layout = "~/Views/Shared/_Index.cshtml";
}

<div class="rows" style="width:95%;margin-left:1%;">
    <table class="form" style="width: 100%;height: 100px;border: 1px solid #ddd;margin-bottom: 20px; margin-top:20px;">
        <tr>
            <td class="formTitle">
                <span style="color:red">*</span>目标病区：
            </td>
            <td class="formValue formDdlSelectorTd" style="width:110px;">
                <select id="sel_inpatientArea" class="form-control">
                    <option value="">==请选择==</option>
                </select>
            </td>
            <td class="formTitle">
                <span style="color:red">*</span>开始时间：
            </td>
            <td colspan="2" class="formValue">
                <input id="kssj" style="width:145px;" class="form-control input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss' })" value="@DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")">
            </td>
        </tr>
        <tr>
            <td colspan="5" style="padding-left:10px">
                <span style="color: red;">
                    请注意： 请您填写正确的目标病区和开始时间，
                    【确定】后该患者长期医嘱将被全部停止，
                    同时系统将为您自动录入一条【转区】医嘱！
                </span>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    var zyh = $.request("zyh");

    $("#sel_inpatientArea").bindSelect({
        //url: "/SystemManage/BaseData/GetAuthedWardSelectJson",
        url: "/NurseManage/EntryRegistration/TreeViewdata",

    });
    function submitForm(callback) {
        $.najax({
            url: "@Url.Action("AdviceTransferWardStopSubmit")",
            dataType: "json",
            data: { zyh: zyh, bq: $('#sel_inpatientArea').find("option:selected").text(), kssj: $('#kssj').val() },
            type: "POST",
            success: function () {
                if (callback) { 
                    callback();
                }
            }
        });
    }

</script>